<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box">
        <ul>
            <li v-for="(item,index) in list" :key="item.id">{{item.name}}</li>
        </ul>
        <!-- 点击 第一个到最后一个 -->
        <button @click="reverse">xixi</button>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.js"></script>

    <script>
        const reverse = new Vue({
            el: '.box',
            data: {
                list: [
                    { id: 1, name: '哈哈' },
                    { id: 2, name: 22 },
                    { id: 3, name: 33 },
                    { id: 4, name: 44 }
                ]
            },
            methods: {
                reverse() {
                    this.list.splice(this.list.length, 0, this.list[0])
                    this.list.splice(0, 1)
                }
            }
        })
    </script>
</body>

</html>